From 0351d5671ddf406de9cceb746e95a48a61be45be Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 3 Apr 2006 15:06:41 +0000 Subject: [PATCH] Make the default colors const. 2006-04-03 Matthias Clasen * gtk/gtklinkbutton.c: Make the default colors const. --- ChangeLog | 2 ++ ChangeLog.pre-2-10 | 2 ++ gtk/gtklinkbutton.c | 4 ++-- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index eb7a9bc907..73c4f3bf9f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2006-04-03 Matthias Clasen + * gtk/gtklinkbutton.c: Make the default colors const. + * gtk/gtkuimanager.c: Avoid relocations. * gtk/gtkxembed.c (_gtk_xembed_message_name): Reduce size of static diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index eb7a9bc907..73c4f3bf9f 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,5 +1,7 @@ 2006-04-03 Matthias Clasen + * gtk/gtklinkbutton.c: Make the default colors const. + * gtk/gtkuimanager.c: Avoid relocations. * gtk/gtkxembed.c (_gtk_xembed_message_name): Reduce size of static diff --git a/gtk/gtklinkbutton.c b/gtk/gtklinkbutton.c index 81b8b657d6..7d872a4821 100644 --- a/gtk/gtklinkbutton.c +++ b/gtk/gtklinkbutton.c @@ -99,8 +99,8 @@ static const GtkTargetEntry link_drop_types[] = { { "_NETSCAPE_URL", 0, 0 } }; -static GdkColor default_link_color = { 0, 0, 0, 0xeeee }; -static GdkColor default_visited_link_color = { 0, 0x5555, 0x1a1a, 0x8b8b }; +static const GdkColor default_link_color = { 0, 0, 0, 0xeeee }; +static const GdkColor default_visited_link_color = { 0, 0x5555, 0x1a1a, 0x8b8b }; static GtkLinkButtonUriFunc uri_func = NULL; static gpointer uri_func_data = NULL; -- 2.30.2